import {
    init,
    classModule,
    propsModule,
    styleModule,
    eventListenersModule,
    h,
} from "snabbdom";
const patch = init([classModule, propsModule, styleModule, eventListenersModule]);
//创建虚拟dom
var myVnode1 = h('a', {
        props: {
            href: "https://www.baidu.com/",
            target: "_blank"
        }
    }, '百度'),
    myVnode2 = h('div', {

    }, '百度'),
    myVnode3 = h('ul', [
        h('li', 'tom'),
        h('li', [
            h('div', '123'),
            h('div', '456'),
        ]),
        h('li', 'bryan'),
    ]);
console.log(myVnode1);
var realDom = document.getElementById("container");
//让虚拟dom上树
patch(realDom, myVnode3);